-
-
Notifications
You must be signed in to change notification settings - Fork 617
fix(YouTube - Custom branding): Use ReVanced icon for status bar notification icon #6108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(YouTube - Custom branding): Use ReVanced icon for status bar notification icon #6108
Conversation
...src/main/resources/custom-branding/mipmap-anydpi/revanced_notification_icon_small_custom.xml
Outdated
Show resolved
Hide resolved
1d5d9bf to
ec4c8fe
Compare
|
Is this PR only applicable to notification icon? How about all toast messages inside the app, e.g toast SB sent segment, toast RYD time out/error, etc? |
|
If your device shows the red/white YouTube logo in push notifications or in toast messages, then this change does not change that. This PR changes the system status bar icon (icon with clock/battery/etc), and changes the push notification icon for devices that don't show a large YT icon with push notifications (Google pixel, all other devices that use ASOP launcher behavior). For devices that show the large app icon (Samsung, probably other manufacturers as well), the only fix is to add a patch option to permanently change the icon (explained in the linked issue). Will do that later in another PR. |
Yes, my device shows red |
|
d04fecb to
c1fd6cb
Compare
|
The fist nature screenshot is correct, and that video screenshot won't be changed by this PR. The second screenshot (red/black icon) should be changed by this PR to whatever in-app custom branding is in use. I'm not completely certain, but it looks like your device follows Google ASOP design and the "small icon" is shown in the notification and not the application icon like Samsung and other manufacturers show. The third screenshot (white YT icon beside the clock) will be changed by this PR for all devices. |
|
It's very strange why they haven't changed. These screenshots were with the latest changes to this PR. Need to recheck. |
|
Do you have a custom icon set in the settings? For me, new video notifications use the ReVanced status bar icon. Maybe there's a different code path for some devices, or for different kinds of notifications (like the "background playback enabled" message). |
|
It seems there was some mistake, now it is displayed. But first of all, the color still needs to be white. And the icon in the status bar seems to be of normal size, but it is different size from the manager icon. |
|
If compare the status bar icons in my vendor, the correct size is the one that is now. It roughly corresponds to the height of the original quantum icon. |
|
Need to update Otherwise I think this just about ready. Will make another PR to add the permanent icon change patch option. |
|
Make it the same height as the minimum/scaled? |
|
Hmm, I think try using the full vertical space (Or 95% of the vertical space)? If we use the height of the minimal V then it might look too small. Some circle icons use the full vertical space (see the 'sleeping' status bar icon in screenshot above). |
|
I think the V looks too small. The status bar icon is icon is very tiny to begin with. Maybe we should use the same 'no-ring' status bar icon for all the preset branding types. Edit: changed all built-in icon styles to use the same status bar icon (icon shown in the first post). |
|
Please confirm if the notification icon tint is now correct. |
|
I don't know how to check the notification icon in music, I don't use comments or subscribes and I've never received notifications here. Let's hope everything works. The icon seems to have the correct scaling. PS: compose manager doesn't show a notification icon in the status bar? |
|
@MarcaDian Can you check the small icon now? I tried removing the tint and maybe now it'll automatically color it. |
a3ec48e to
c141747
Compare
|
Is that blue tint a theme color of your device? If so then that looks correct (and much better than the black/grey color of before). |
Yes, this is the accent color of the theme. |
|
Notifications use the manifest application name (that name cannot be changed using an in-app setting). The system YouTube app shows along side patched YouTube in some places such as:
Because the system YouTube app cannot be completely uninstalled, it makes patched YouTube appear identical to the original YouTube for the situations listed above. To fix this ambiguity, I changed the manifest application name to "YouTube ReVanced" to reduce end user confusion. The launcher still always shows whatever name the user has selected in the app settings. |
|
I think this is ready. Will merge in a day or two. |
e31a698 to
9a5a59b
Compare
# [5.43.0-dev.2](v5.43.0-dev.1...v5.43.0-dev.2) (2025-10-14) ### Bug Fixes * **YouTube - Custom branding:** Use ReVanced icon for status bar notification icon ([#6108](#6108)) ([10ea250](10ea250))
|
What color is YouTube? The most we can do is tint the small icon (YouTube code tints it red). If the small icon xml itself uses any color except white or black, then the system status bar shows those colors (very surprising that Android would allow that). |
|
Black. Added a screenshot above. |
|
What color is the small icon if branding is set to original? If YT shows a white icon, we can change the ReVanced XML to use white (status bar works the same if XML is either black or white) |
|
I can try changing it myself and check, then I'll let you know if it works. |
|
If changing the XML color to white works, then make a PR with the change. Can add a comment to the XML explaining the paths must be white |
|
It seems to work. Please add these changes directly, I don't have the opportunity to do it right now. |
|
It's interesting how Android colors a colored PNG notification icon to white/black color. |
# [5.43.0](v5.42.1...v5.43.0) (2025-10-14) ### Bug Fixes * **Custom branding:** Use white notification icon for expanded status bar panel ([95eee59](95eee59)) * **Instagram - Change sharing domain:** Display patch option ([#6089](#6089)) ([be2b144](be2b144)) * **X / Twitter - Change Link Sharing Domain:** Change link domain of share copy action ([#6091](#6091)) ([5484625](5484625)) * **YouTube - Custom branding:** Do not add a broken custom icon if the user provides an invalid custom icon path ([6555f6e](6555f6e)) * **YouTube - Custom branding:** Use ReVanced icon for status bar notification icon ([#6108](#6108)) ([10ea250](10ea250)) * **YouTube - Force original audio:** Do not use translated audio if stream spoofing is off and force audio is on ([0c19dba](0c19dba)) ### Features * **Instagram:** Add `Hide suggested content` patch ([#6075](#6075)) ([50f0b9c](50f0b9c))























Uses a custom icon for the push notification 'small icon'. This icon is shown in the system status bar for all devices:
If your device uses Android ASOP design then the push notification icon is also changed (the blue icon background in the screenshot below is the system theme for this particular device. The icon background color will match the theme of your device).
But if your device does not follow Android ASOP behavior and it shows a large app icon in push notifications (such as Samsung devices), then that icon will still show the original red/white YouTube logo (That icon cannot be programmatically changed using an in-app setting).